﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Register.aspx.cs" Inherits="Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        .style4
        {
            width: 158px;
            font-size: small;
            color: #000000;
        }
        .style7
        {
            width: 158px;
            font-size: small;
            color: #000000;
            height: 25px;
        }
        .style8
        {
            height: 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="heading">
        Registration</div>
    <table>
        <tr>
            <td colspan="2">
                <asp:Label ID="lblMessage" runat="server" Style="font-size: small; color: Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                Login Information
            </td>
        </tr>
        <tr>
            <td class="style4">
                NRIC</td>
            <td>
                <asp:TextBox ID="tbxAddress" runat="server" Width="198px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvAddress" runat="server" ControlToValidate="tbxAddress"
                    Display="Dynamic" ErrorMessage="NRIC is required!" Style="font-size: small"
                    ValidationGroup="Registration"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Password:
            </td>
            <td>
                <asp:TextBox ID="tbxPassword" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
               
            </td>
        </tr>
        <tr>
            <td class="style4">
                Re-enter Password:
            </td>
            <td>
                <asp:TextBox ID="tbxRePassword" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvRePassword" runat="server" ControlToValidate="tbxRePassword"
                    Display="Dynamic" ErrorMessage="Re-enter password is required!" Style="font-size: small"
                    ValidationGroup="Registration"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="cvPassword" runat="server" ControlToCompare="tbxPassword"
                    ControlToValidate="tbxRePassword" Display="Dynamic" ErrorMessage="Password does not match!"
                    Style="font-size: small" ValidationGroup="Registration"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                Personal Particulars
            </td>
        </tr>
        <tr>
            <td class="style4">
                Full Name:
            </td>
            <td>
                <asp:TextBox ID="tbxName" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvFirstName" runat="server" ControlToValidate="tbxName"
                    Display="Dynamic" ErrorMessage="Your Full Name is required!" Style="font-size: small"
                    ValidationGroup="Registration"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Contact Number:
            </td>
            <td>
                +
                <asp:TextBox ID="tbxCountryCode" runat="server" Width="40px"></asp:TextBox>
                -
                <asp:TextBox ID="tbxContact" runat="server" Width="132px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="tbxContact"
                    Display="Dynamic" ErrorMessage="(Number only)" ValidationExpression="\d+" ValidationGroup="Registration"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="rfvContact" runat="server" ControlToValidate="tbxContact"
                    Display="Dynamic" ErrorMessage="Contact number is required!" Style="font-size: small"
                    ValidationGroup="Registration"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxCountryCode"
                    Display="Dynamic" ErrorMessage="Country code is required!" ValidationGroup="Registration"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbxCountryCode"
                    Display="Dynamic" ErrorMessage="(Number only)" ValidationExpression="\d+" ValidationGroup="Registration"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style7">
                &nbsp;</td>
            <td class="style8">
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2" style="padding: 0 0 0 200px">
                <asp:Button ID="btnRegister" runat="server" OnClick="btnRegister_Click" Text="Register"
                    ValidationGroup="Registration" />
            </td>
        </tr>
    </table>
</asp:Content>
